package com.lq.ecoldchain.ui.order

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/11 0011  16:27
*function by lq
*/
val prepareOderKodeinModule = Kodein.Module("Prepare_Order_Kodein_Module"){
    bind<PrepareViewModel>() with scoped(AndroidLifecycleScope).singleton {
        PrepareViewModel()
    }

    bind<PrepareDelegate>() with scoped(AndroidLifecycleScope).singleton {
        PrepareDelegate(instance())
    }
}